package com.monkeybrother.thread.callable;

import java.util.stream.IntStream;
import java.util.stream.LongStream;

public class CallableTest {
    public static void main(String[] args) {
        Long beginTime = System.currentTimeMillis();
        System.out.println(LongStream.range(0, Long.MAX_VALUE).sum());
        System.out.println("一共耗时：" + (System.currentTimeMillis() - beginTime));
    }
}
